package com.hanserwei.community.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hanserwei.community.entity.po.Owner;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hanserwei.community.entity.request.OwnerQueryRequest;
import com.hanserwei.community.entity.vo.OwnerVO;

import java.util.List;

public interface OwnerService extends IService<Owner>{


    boolean saveOwner(Owner owner);

    boolean updateOwner(Owner owner);

    Page<OwnerVO> listByPage(OwnerQueryRequest request);

    QueryWrapper<Owner> getQueryWrapper(OwnerQueryRequest request);

    OwnerVO getOwnerVO(Owner owner);

    OwnerVO getOwnerVOById(Integer ownerId);

    List<OwnerVO> getOwnerVOList(List<Owner> ownerList);
}
